package sctu.edu.java.year2016.team06.luoxin.day20160522.chapter6_1;

/**在项目中创建Number类，判断字符串“mingrikejijavabu”中字符‘i’出现了几次，并将结果输出。
 * Created by Administrator on 2016/5/22.
 */

public class Number {
    public static void main(String[] args) {
    String text = "mingrikejijavabu";
        String str= text.replace("i","");
        System.out.println("i出现的次数为："+(text.length()-str.length()));
    }
}
